/**
 * 
 */
package org.jinion.exception;

import org.jinion.util.StringTool;

/**
 * @author zhlmmc
 *
 */
public class JinionException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 * @param message
	 */
	public JinionException(String message){
		super(message);
	}
	
	/**
	 * 
	 * @param format
	 * @param args
	 */
	public JinionException(String format, Object ... args){
		super(StringTool.buildString(format, args));
	}
	
	/**
	 * 
	 * @param cause
	 */
	public JinionException(Throwable cause){
		super(cause);
	}
	
	/**
	 * 
	 * @param message
	 * @param cause
	 */
	public JinionException(String message, Throwable cause){
		super(message, cause);
	}
	
	/**
	 * 
	 * @param cause
	 * @param format
	 * @param args
	 */
	public JinionException(Throwable cause, String format, Object ... args){
		super(StringTool.buildString(format, args), cause);
	}
}
